﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_phong_tro : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            xCheckFunction();
        }
    }

    /// <summary>
    /// Check param to load user control
    /// Author: ThuanNH
    /// Create Date: 2013/07/22
    /// </summary>
    private void xCheckFunction()
    {
        try
        {
            string strParam1 = clsCommon.fncGetRoute(this.Page, "param1");
            string strParam2 = clsCommon.fncGetRoute(this.Page, "param2");
            string strParam3 = clsCommon.fncGetRoute(this.Page, "param3");
            string strParam4 = clsCommon.fncGetRoute(this.Page, "param4");
            string strUserControlName = "phong-tro-danh-sach";
            if (string.IsNullOrEmpty(strParam1) == false
                && string.IsNullOrEmpty(strParam2) == false
                && string.IsNullOrEmpty(strParam3) == true
                && string.IsNullOrEmpty(strParam4) == true)
            {
                strUserControlName = "phong-tro-chi-tiet";
            }
            clsCommon.fncLoadUserControl(plhContent, this.Page, "UserControl/", strUserControlName, "index");
        }
        catch (Exception ex)
        {

        }

    }
}